#!/bin/sh

# Get the jobid

jobid=`echo $1  | cut -d" " -f3`
jobstate=`$DIRAC/scripts/dirac-wms-job-status $jobid | cut -d" " -f2 | cut -d"=" -f2 | cut -d";" -f1`

echo $jobstate
